<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/7/3
  Time: 18:12
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>展示页面</title>
</head>
<body>

    <table>
        <tr>
            <th>id</th>
            <th>名字</th>
            <th>价格</th>
            <th>上架日期</th>
            <th>描述</th>
        </tr>
    </table>
    <table>
        <c:forEach items="${items}" var="item" varStatus="count">
        <tr>
            <td>${count.count}</td>
            <td>${item.name}</td>
            <td>${item.price}</td>
            <td>${item.createtime}</td>
            <td>${item.detail}</td>
        </tr>
        </c:forEach>
    </table>



</body>
</html>
